﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	String cname = (String)request.getAttribute("cname");
    String ctype = (String)request.getAttribute("ctype");
    Integer cid = Integer.parseInt(request.getParameter("cid"));
     %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>粮油集团办公自动化协作平台</title>
	<link href="<%=basePath %>articles/style/css.css" rel="stylesheet" type="text/css" />
	<link href="articles/style/houtaianniu.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script> 
	<script type="text/javascript" src="ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="ajaxFramework/jQuery/jquery.js"></script>
	<script type="text/javascript" src="articles/manage/js/manageSet.js"></script>
	<script type="text/javascript">
       window.onload = function(){windowonload();parent.iFrameHeight();}
             var a = window.screen.availHeight-262;
       $(document).ready(function()	{
           $("#xt").css("height",a+"px");	
		});
	</script>

   
  </head>
  <body>
    <div id="toolmenu"></div>
    <script type="text/javascript">
     	var cid = '<%out.print(cid); %>';
 		var basePath = '<%out.print(basePath); %>';
 		var _ctype='<%out.print(ctype); %>';
 		var name='<%out.print(cname); %>';
 		var _cname=decodeURI(name);
		 Ext.onReady(function(){
		  	 var Toolbar = new Ext.Toolbar({
			        	height:28,
		                renderTo : "toolmenu"
		           });
		  	 Toolbar.add([{
		                text : "保存",
		                 iconCls: 'save',
		                handler : function(){
				        		formSubmit();}
		            }, {
		                text : "返回",
		                iconCls: 'back',
		                handler : function(){
				        		window.location.href = basePath +'articles/manage/manageList.jsp?cid='+cid;	}
		            }]);
		     Toolbar.addFill();
		     Toolbar.addText('<a style="font-weight:bold; color:black;line-height: 22px;">'+ _cname + '</a>&nbsp;&nbsp;&nbsp;'); 

		}); 
  	</script>
    <div id="xt" style="overflow-y:hidden;">
        <form action="<%=basePath %>tjsinfo/tjsoa/articles/Manage.do?method=updateView" method="post" name="form1">
          <input type="hidden" name="cid" id="cid" value = "<%=cid %>"/>
          <input type="hidden" name="ctype" id="ctype" value = "<%=ctype %>"/>
        
          <input id="basePath" value="<%=basePath%>" type="hidden"/>
     
            <div style="height: 100%; clear: both;margin-top: 20px">
            <table width="100%">
            <tr>
                 <td width="33%"></td>
                 <td style="padding-bottom:20px;" align="left">&nbsp;请选择需要在新建、编辑界面出现的栏目：<br/></td>
            </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                 <td width="35%" valign="top" align="right"><input type="checkbox" name="_title" id="_title" checked="checked" disabled="disabled"/> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;标题</td>
	          </tr>              
              <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_shortTitle" id="_shortTitle" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;短标题</td>
	          </tr>          
			 <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_author" id="_author" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;作者</td>
	          </tr>   
			 <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_keywords" id="_keywords" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;关键字</td>
	          </tr>
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_smallContent" id="_smallContent" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;摘要</td>
	          </tr>
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_availableDate" id="_availableDate" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;有效时间</td>
	          </tr>
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_url" id="_url" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;超链接</td>
	          </tr> 
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_showOrder" id="_showOrder" checked="checked" disabled="disabled"/> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;显示顺序</td>
	          </tr> 
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_smallPicUrl" id="_smallPicUrl" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;小图片</td>
	          </tr> 
	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_uploadFile" id="_uploadFile" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;上传附件</td>
	          </tr>  
 	          <tr>
                 <td width="30%" valign="top" align="right"><input type="checkbox" name="_content" id="_content" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;正文</td>
	          </tr>  
 	           <tr style='display: none;'>
                 <td width="30%" valign="top" align="right"></td>
                 <td align="left">&nbsp;&nbsp;&nbsp;显示模式：</td>
	          </tr> 
 	          <tr style='display: none;'>
                 <td width="30%" valign="top" align="right"><br /><br /><br /></td>
                 <td align="left"><input type="radio" name="_viewtype" id="viewtype0" value="0" checked/>普通&nbsp;&nbsp;
			        		<input type="radio" name="_viewtype" id="viewtype1" value="1"/>直接打开附件&nbsp;&nbsp;
			        		<input type="radio" name="_viewtype" id="viewtype2" value="2"/>大表格模式&nbsp;&nbsp;
			        		<input type="radio" name="_viewtype" id="viewtype3" value="3"/>超大表格显示&nbsp;&nbsp;
			        		<input type="radio" name="_viewtype" id="viewtype4" value="4"/>直接显示word文档&nbsp;&nbsp;
			        	<br /><br /><br /></td>
	          </tr> 
 	          
 <!--            <tr>
                 <td width="10" valign="top" align="right"><input type="checkbox" name="_isFile" id="_isFile" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;查看时直接打开附件</td>
	          </tr> 
	          <tr>
                 <td width="10" valign="top" align="right"><input type="checkbox" name="_bigtable" id="_bigtable" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;大表格模式  （注意与超大表格模式互斥）</td>
	          </tr>  
	           <tr>
                 <td width="10" valign="top" align="right"><input type="checkbox" name="_hugetable" id="_hugetable" /> </td>
                 <td align="left">&nbsp;&nbsp;&nbsp;超大表格模式 （注意与大表格模式互斥）</td>
	          </tr>  -->	
            </table>
           </div>
      </form>

    </div>
  </body>
</html>
